const { resolve } = require('path')

const Router = require('koa-router')
const router = new Router()

const { baseRouter } = require(resolve(__dirname, '../config/default'))
const {
  login, enroll
} = require(resolve(__dirname, '../routerHandle/loginHandle'))

// 登录
router.get(baseRouter + '/login', login)
// 注册
router.post(baseRouter + '/login/register', enroll)


module.exports = router